﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using TestXNA3;

namespace TestEditor
{
    static class Program
    {
        public class TestMessageFilter : IMessageFilter
        {
            public bool PreFilterMessage(ref Message m)
            {
                const int WM_KEYDOWN = 0x0100;
                if (m.Msg == WM_KEYDOWN)
                {
                    TestEditor.StaticTestEditor.keyDown((Keys)m.WParam);
                }
                return false;
            }
        }
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.AddMessageFilter(new TestMessageFilter());
            Application.SetCompatibleTextRenderingDefault(false);
            TestEditor testEditor = new TestEditor();
            try
            {
                Application.Run(testEditor);
            }
            catch
            {
            }
            testEditor._game.Exit();
        }
    }
}
